import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import msgSession from './modules/msgSession'
import message from './modules/message'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {

  },
  getters: {
    token (state) {
      return state.user.userInfo.token
    },
    userId (state) {
      return state.user.userInfo.userId
    }
  },
  mutations: {

  },
  actions: {

  },
  modules: {
    user,
    msgSession,
    message
  }
})
